import Home from '../components/content/Home.vue';
import Category from '../components/content/Category.vue';
import GroupBuy from '../components/content/GroupBuy.vue';
import Cart from '../components/content/Cart.vue';
import Login from '../components/content/Login.vue';
import Search from '../components/Search.vue';
import zeroComponent from "../components/group/zeroComponent.vue";
import oneComponent from "../components/group/oneComponent.vue";
import twoComponent from "../components/group/twoComponent.vue";
import threeComponent from "../components/group/threeComponent.vue";
import GoodsDetails from "../components/GoodsDetails.vue"



const routes = [
    { path: '/', component: Home },
    { path: '/category', component: Category },
    {
        path: '/groupbuy',
        component: GroupBuy,
        children: [
            {
                path: "zero",
                component: zeroComponent
            },
            {
                path: "one",
                component: oneComponent,
                meta: {
                }
            },
            {
                path: "two",
                component: twoComponent,
                meta: {
                }
            },
            {
                path: "three",
                component: threeComponent,
                meta: {
                }
            }
        ]
    },
    { path: '/cart', component: Cart },
    { path: '/login', component: Login },
    { path: '/search', component: Search },
    {path:'/goodsdetails',component:GoodsDetails}
];

export default routes;